package com.treeste;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class HashMapDemo01 {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("张三", "李四");
        map.put("赵三", "王五");
        map.put("李亲", "赵璐");
        Set<String> s = map.keySet();
        for (String s1 : s) {
            String s2 = map.get(s1);
            System.out.println(s1 + "---" + s2);

        }

    }
}
